<div class="Midlle-top">
<script type="text/javascript">
function getfav()
{	
	var url = '<{$config.weburl}>/ajax_back_end.php';
	var myurl='<{$config.weburl}>/?m=offer%26s=offer_detail%26id=<{$smarty.get.id}>';
	var u='<{$smarty.cookies.USER}>';
	if(u=='')
	{
		alert('<{$lang.no_logo}>');
		window.location.href='<{$config.weburl}>/login.php?forward='+myurl;
		return false;
	}
	var fu='<{$smarty.get.id}>';
 	var typ='2';
	var ttil='<{$de.title|regex_replace:"/[\r\t\n]/":""}>';
	var mpic='<{$config.weburl}>/uploadfile/zsimg/<{$de.showimg}>.jpg';
	var des='<{$de.title|strip_tags}>';
    var pars = 'user='+u+'&fid='+fu+'&type='+typ+'&title='+ttil+'&url='+myurl+'&des='+des+'&picurl='+mpic;
	var myAjax = new Ajax.Request(url,{method: 'post', parameters: pars, onComplete: showResponse});
	function showResponse(originalRequest)
	{
	    if(originalRequest.responseText>1)
	       alert('<{$lang.fav_ok}>');
		else if (originalRequest.responseText>0)
	       alert('<{$lang.fav_isbing}>');
		else
	       alert('<{$lang.error}>');
	}
}
function seebig(url,id)
{
	if(url=='')
		return;
	url = url.substr(0,url.lastIndexOf('/')+1)+'big_'+url.substr(url.lastIndexOf('/')+1);
    $('imgmove').innerHTML='<a href="<{$config.weburl}>/uploadfile/product/'+url+'" target="_blank">'+
	'<img id="img'+id+'" border="0" src="<{$config.weburl}>/uploadfile/product/'+url+'" ></a>';
	if($('img'+id).height>$('img'+id).width)
		$('img'+id).height=275;
	else
		$('img'+id).width=275;
}
var weburl='<{$config.weburl}>';
function copyToClipboard(txt)
{
  try{
	  window.clipboardData.setData("Text",txt);  
	  alert('<{$lang.copysuc}>'); 
  }
  catch(e){alert('<{$lang.noace}>');}
}
</script>
<script src="<{$config.weburl}>/script/my_lightbox.js" language="javascript"></script>
<div class="middle-newslist">


<div class="Middle-two-content-left-newlist">				
    <div class="Middle-two-content-Middle-top">
       <span class="feiji"> <{$lang.you_here}>&raquo;<a href='<{$config.weburl}>/'><{$lang.home}></a>&raquo;<a href="<{$config.weburl}>/?m=offer"><{$lang.shop}></a> &raquo;<{$guide}></span>
    </div>		   
    <div class="content4">
    	<div id="mingzi" class="newstitle">
            <{$de.offertype}><{$de.title}>
        </div>
        <div class="xiangqingline"></div>
			<div class="propic" id="wenziceng">
				<div id="imageceng">
			    <div id="imagesxiangqing" >   
                     <{assign var=img value=$de.cover}>
                     <{html_image file=uploadfile/product/$img width=275 alt=$list.title}>					 
				</div>
                 
				 <div id="infopic" class="small_pic">
				  <{foreach item=pic key=num from=$de.pic}>
						<{if $pic&&$num<4}>
						<img onMouseOver="seebig('<{$pic}>',<{$num}>)" style="cursor:pointer" src="<{$config.weburl}>/uploadfile/product/<{$pic}>" border=0 width="45" height="40">
						<{/if}>
				 <{/foreach}>
				</div>
                <div id="fenxiang">
                    <span><a href="javascript:alertWin('<{$lang.share}>','<br><span style=width:80px;><{$lang.purl}></span><input id=textfield type=text size=45 value=<{$config.weburl}>/?m=offer&s=offer_detail&id=<{$de.id}>>
                    <div style=width:340px;padding-left:60px;text-align:left;><br><button onclick=copyToClipboard(\'<{$config.weburl}>/?m=offer&s=offer_detail&id=<{$de.id}>\')><{$lang.copysend}></button></div>',400,100,'');"><img src="<{$config.weburl}>/image/<{$config.temp}>/add_to_share.png" /></a></span>
                    
                    <span class="shoucang"><a href="javascript:getfav();"><img src="<{$config.weburl}>/image/<{$config.temp}>/add_to_fav.png" /></a></span>
                </div>
            </div>
            <div class="proinfo" id="fontceng">
			<table width="300" border="0">
				<tr>
					 <td class="pro_text">市场价</td>
					 <td align="left"><{$config.money}> <span style="text-decoration:line-through"><{$de.market_price|number_format:2}></span> <{$prod.unit}></td>
				 </tr>
            	<tr>
					 <td class="pro_text"><{$lang.price}></td>
					 <td align="left"><{$config.money}> <span style="color:#FF5500; font-size:24px;"><{$de.price|number_format:2}></span> /<{$de.priceDes}></td>
				 </tr>
                 <tr>
					 <td class="pro_text"><{$lang.pro_city}></td>
					 <td align="left"><{$cominfo.province}><{$cominfo.city}></td>
				 </tr>
                  <tr>
					<td class="pro_text"><{$lang.brand}></td>
					<td width="223" align="left"><{$de.pp}></td>
				 </tr>
				 <tr>
					<td class="pro_text"><{$lang.pard}></td>
					<td align="left"><{$de.gg}></td>
				 </tr>
				 <tr>
					<td class="pro_text"><{$lang.model}></td>
					<td align="left"><{$de.model}></td>
				 </tr>
                 <tr>
					 <td class="pro_text"><{$lang.ptime}></td>
					 <td align="left"><{$de.uptime|date_format}></td>
				 </tr>
				  <tr>
					 <td class="pro_text"><{$lang.valid_time}></td>
					 <td align="left"><{$de.valid_time}></td>
				 </tr>
				 <tr><td colspan="2" style="border:1px dashed #CCCCCC; padding:5px;"><{$de.con}></td></tr>
				 <tr>
				 <td colspan="2">
				 	<br/>
                <a href="<{$config.weburl}>/shop.php?uid=<{$de.userid}>&action=mail&tid=<{$de.id}>&contype=2">
                 <img src="<{$config.weburl}>/image/<{$config.temp}>/sendmail.gif" />
                 </a>
                 </td>
				 </tr>
			</table>
			</div>
			</div>


			<div class="xiangqingwenzi">
				<h3 style="display: block;font-size: 1.17em;"><{$lang.pro_det}></h3>
			</div>
			<div class="xiangqingline1"></div>
            <div class="clear"></div>
			<div  id="productdetail" class="wenziliebiao">
				<div class="pro_int"><{$lang.pro_det}></div>
					<div style="float:right; width:250px; margin-right:5px;"><script src='<{$config.weburl}>/api/ad.php?id=17&catid=<{$smarty.get.id}>&sname=<{$sname}>'></script></div>
					<{$de.detail}>  
				</div>
			<br/>
            <{if $attach}>
            <div>
            	<div class="pro_int"><{$lang.attach}></div>
                <ul style="margin-top:10px;">
                	<{foreach item=list from=$attach}>
                	<li style="float:left; width:80px;text-align:center; margin-left:10px; margin-right:15px;word-wrap: break-word;word-break:break-all; line-height:14px;">
                		<a title="<{$list.downname}>" href="?m=offer&s=offer_down&id=<{$list.id}>&de=<{$list.file_url}>">
                        <img height="60px;" src="<{$list.thumb_img}>">
                        </a><br />
                        <a style="font-size:11px;" href="?m=offer&s=offer_down&id=<{$list.id}>&de=<{$list.file_url}>"><{$list.downname}>.<{$list.pic}></a>&nbsp;&nbsp;<h5>(<{$list.filesize}>)</h5>
                	</li>
                    <{/foreach}>
                </ul>
                <div style="clear:both"></div>
            </div>
            <{/if}>
            <br />
			<{insert name="label" type="comment" ctype=2 cid=$smarty.get.id temp="comment_default" }>
            </div>
			
			<div class="m1">
			<div class="title4">
            	<h2 style="float:left; margin-left:20px;"><{$lang.com_newpro}></h2>
                <span style="float:right; margin-right:20px;"><a href="<{$config.weburl}>/?m=offer&s=offer_list&id=<{$de.catid}>"><{$lang.more}></a>&nbsp;</span>
            </div>
			<div class="sameoffer content4" style="padding:5px 20px;">
            <table width="100%" border="0" cellspacing="5" cellpadding="0" style="text-align:left;">
              <tr>
              <{foreach item=slist key=num from=$reloffer}>
                <td height="22">
                <img src='<{$config.weburl}>/image/<{$config.temp}>/offer_<{$slist.type}>.gif' />
                <a href="<{geturl type='offer_detail' user=$slist.user uid=$slist.userid tid=$slist.id m='offer'}>">
                <{$slist.title|truncate:44}>
                </a>
                </td>
                <{if ($num+1)%2==0}></tr><tr><{/if}>
              <{/foreach}>
              </tr>
            </table>	
			</div>
			</div>
		</div>
<!--右边结束-->
<div class="Middle-two-content-right-newlist2">
      <script src='<{$config.weburl}>/api/ad.php?id=50&catid=<{$smarty.get.id}>'></script>
</div>
</div>